#ifndef LED_H
#define LED_H
#include "core.h"
#include "tm4c123gh6pm.h"
#include "stdint.h"


void LED_Init(void);

#define LED_R(x) GPIO_PORTF_DATA_R &= ~(1<<1);GPIO_PORTF_DATA_R |= x<<1
#define LED_B(x) GPIO_PORTF_DATA_R &= ~(1<<2);GPIO_PORTF_DATA_R |= x<<2
#define LED_G(x) GPIO_PORTF_DATA_R &= ~(1<<3);GPIO_PORTF_DATA_R |= x<<3
#define LED_R_OPPOSITE GPIO_PORTF_DATA_R ^= (1<<1)
#define LED_B_OPPOSITE GPIO_PORTF_DATA_R ^= (1<<2)
#define LED_G_OPPOSITE GPIO_PORTF_DATA_R ^= (1<<3)



#endif
